<template>
  <div>
    <item-detail :item="item" />
  </div>
</template>
<script>
import Api from '~/api'
export default {
  name: 'Item',
  async asyncData ({ route }) {
    const id = route.params.id
    const res = await Api.getItemDetail(id)
    const item = res.data
    return { item, id }
  }
}
</script>
<style lang="scss" scoped>
</style>
